import request from '@/utils/request'

export default {
  appearList(params) {
    return request({
      url: '/v1/toolAppearList',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/toolAppear/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/toolAppearUpdate',
      method: 'post',
      data
    })
  },
  create(data) {
    return request({
      url: '/v1/toolAppearAdd',
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: `/v1/toolAppearDel/${id}`,
      method: 'get'
    })
  },
  append(data) {
    return request({
      url: '/v1/toolAppearAppend',
      method: 'post',
      data
    })
  },
  remove(id) {
    return request({
      url: `/v1/toolAppearRemove/${id}`,
      method: 'get'
    })
  },
  review(data) {
    return request({
      url: '/v1/toolAppearReview',
      method: 'post',
      data
    })
  },
  edit(data) {
    return request({
      url: '/v1/toolAppearEdit',
      method: 'post',
      data
    })
  },
  book(params) {
    return request({
      url: '/v1/toolAppearBook',
      method: 'get',
      params
    })
  }
}
